﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace Umbrella.Whs.Contracts
{
    public enum UserAccessLevel
    {
        None,
        ReadOnly,   // visitor
        ReadWrite,  // member
        Admin       // admin
    }

    public class UserInfo
    {
        public string Login;
        public string FirstName;
        public string LastName;
        public string FullName;

        public bool Enabled;
        public bool IsGuestUser;

        public UserAccessLevel Access;
    }

    partial interface ISingletonService
    {
        [OperationContract]
        IEnumerable<UserInfo> GetAllUsers();

        [OperationContract]
        void SetAllUsersAccess(IEnumerable<UserInfo> users, bool revokeUnmentionedUsers);
    }
}
